package edu.lingnan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.lingnan.pojo.Product;

import java.util.List;

/**
 *
 */
public interface ProductService extends IService<Product> {

    List<Product> selectAllProduct();

    List<Product> selectProductById(Long id);

    List<Product> selectProductByName(String name);

    List<Product> selectProductLikeName(String name);

    List<Product> selectProductByType(String type);

    List<Product> selectProductByStoreId(Long id);

    int deleteProductById(Long id);


    int deleteProductByIds(Long[] ids);

    int updateProductStatus(Long id, int status);

    int updateProduct(Product product);

    Long addProduct(Product product);
}
